package com.ruoyi.rescheduling.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rescheduling.mapper.MachinetableMapper;
import com.ruoyi.rescheduling.domain.Machinetable;
import com.ruoyi.rescheduling.service.IMachinetableService;

/**
 * 设备组信息Service业务层处理
 * 
 * @author wangming
 * @date 2024-01-27
 */
@Service
public class MachinetableServiceImpl implements IMachinetableService 
{
    @Autowired
    private MachinetableMapper machinetableMapper;

    /**
     * 查询设备组信息
     * 
     * @param workarea 设备组信息主键
     * @return 设备组信息
     */
    @Override
    public Machinetable selectMachinetableByWorkarea(String workarea)
    {
        return machinetableMapper.selectMachinetableByWorkarea(workarea);
    }

    /**
     * 查询设备组信息列表
     * 
     * @param machinetable 设备组信息
     * @return 设备组信息
     */
    @Override
    public List<Machinetable> selectMachinetableList(Machinetable machinetable)
    {
        return machinetableMapper.selectMachinetableList(machinetable);
    }

    /**
     * 新增设备组信息
     * 
     * @param machinetable 设备组信息
     * @return 结果
     */
    @Override
    public int insertMachinetable(Machinetable machinetable)
    {
        return machinetableMapper.insertMachinetable(machinetable);
    }

    /**
     * 修改设备组信息
     * 
     * @param machinetable 设备组信息
     * @return 结果
     */
    @Override
    public int updateMachinetable(Machinetable machinetable)
    {
        return machinetableMapper.updateMachinetable(machinetable);
    }

    /**
     * 批量删除设备组信息
     * 
     * @param workareas 需要删除的设备组信息主键
     * @return 结果
     */
    @Override
    public int deleteMachinetableByWorkareas(String[] workareas)
    {
        return machinetableMapper.deleteMachinetableByWorkareas(workareas);
    }

    /**
     * 删除设备组信息信息
     * 
     * @param workarea 设备组信息主键
     * @return 结果
     */
    @Override
    public int deleteMachinetableByWorkarea(String workarea)
    {
        return machinetableMapper.deleteMachinetableByWorkarea(workarea);
    }
}
